<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="external/jquery/jquery-3.4.1.js"></script>
    <script src="scripts/note.js"></script>
</head>

<body>
    <div>
        <h2>控制台</h2>
        <div>
            <span>查看信息 ——</span>
            <span>输入ID以查看笔记信息：</span>
            <input id="ctrl-jump-target" type="text">
            <button onclick="jump()">跳转</button>
        </div>
        <div>
            <span>新建笔记 ——</span>
            <input id="ctrl-create-title" type="text" value="新建笔记">
            <button onclick="createNote()">新建笔记</button>
        </div>
    </div>
    <hr>
    <div id="note-info">
        <h2>当前页面笔记信息</h2>
        <div>
            <span>笔记标题：</span>
            <span id="note-info-title">不存在</span>
            <span> —— 新标题：</span>
            <input id="edit-title" type="text">
        </div>
        <div>
            <textarea name="笔记内容" id="edit-content" rows="10" style="width: 80%;"></textarea>
        </div>
        <div>
            <button onclick="updateNote()">全部保存</button>
            <span class="save-info"></span>
        </div>
    </div>
</body>

</html>